import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/', name: 'Home', component: () => import("@/views/Home.vue"), children: [
      { path: '/apitest', name: 'ApiTest', component: () => import("@/views/test-manage/ApiTest.vue") },
      { path: '/amis', name: 'Amis', component: () => import("@/views/amis/Amis.vue") },
    ]
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
